package com.zhuss.team.processor;

import com.zhuss.team.db.dao.ext.InvestAnswerDao;
import com.zhuss.team.db.entity.InvestAnswer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: zhushanshuo
 * @Date: 2020/3/4 14:42
 */
@Component("answerRead")
public class AnswerRead {

    @Autowired
    private InvestAnswerDao investAnswerDao;

    public Object answerList(Long publishUserId) {
        List<InvestAnswer> result = new ArrayList<>();
        result = investAnswerDao.answerList(publishUserId);
        return result;
    }
}
